package com.example.springboot2.oa.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.springboot2.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_department")
public class TDepartment extends BaseEntity {
    private static final long serialVersionUID = 1L;


    @TableId("dept_id")
    private int deptId;

    @TableId("dept_name")
    private String deptName;
    @TableId("parent_id")
    private int parentId;
    @TableId("dept_desc")
    private String deptDesc;

    private List<TDepartment> subDepartmentList;

    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getDeptDesc() {
        return deptDesc;
    }

    public void setdeptDesc(String deptDesc) {
        this.deptDesc = deptDesc;
    }

    public List<TDepartment> getSubDepartmentList() {
        return subDepartmentList;
    }

    public void setSubDepartmentList(List<TDepartment> subDepartmentList) {
        this.subDepartmentList = subDepartmentList;
    }
}
